home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3x / cpusetAttach.z / cpusetAttach
Encoding:
Text File  |  2002-10-03  |  2.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ccccppppuuuusssseeeettttAAAAttttttttaaaacccchhhh((((3333xxxx))))                                              ccccppppuuuusssseeeettttAAAAttttttttaaaacccchhhh((((3333xxxx))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      cpusetAttach - attach the current process to a cpuset
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ccccppppuuuusssseeeetttt....hhhh>>>>
  13.  
  14.      iiiinnnntttt ccccppppuuuusssseeeettttAAAAttttttttaaaacccchhhh((((cccchhhhaaaarrrr ****qqqqnnnnaaaammmmeeee))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The _c_p_u_s_e_t_A_t_t_a_c_h function is used to attach the current process to the
  18.      cpuset identified by qname.  Every cpuset queue has a file that defines
  19.      access permissions to the queue.  The execute permissions for that file
  20.      will determine if a process owned by a specific user can attach a process
  21.      to the cpuset queue.
  22.  
  23.      The qqqqnnnnaaaammmmeeee argument is the name of the cpuset to which the current process
  24.      should be attached.
  25.  
  26. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  27.      This example attaches the current process to a cpuset queue named
  28.      mpi_set.
  29.  
  30.                char *qname = "mpi_set";
  31.  
  32.                /* Attach to cpuset, if error - print error & exit */
  33.                if (!cpusetAttach(qname)) {
  34.                    perror("cpusetAttach");
  35.                    exit(1);
  36.                }
  37.  
  38.  
  39. NNNNOOOOTTTTEEEESSSS
  40.      _c_p_u_s_e_t_A_t_t_a_c_h is found in the library "libcpuset.so", and will be loaded
  41.      if the option _----_llll_cccc_pppp_uuuu_ssss_eeee_tttt is used with _cccc_cccc(1) or _llll_dddd(1).
  42.  
  43. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  44.      cpuset(1), cpusetCreate(3x), cpuset(5).
  45.  
  46. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  47.      If successful, _c_p_u_s_e_t_A_t_t_a_c_h returns a 1.  If _c_p_u_s_e_t_A_t_t_a_c_h fails, it
  48.      returns the value 0 and eeeerrrrrrrrnnnnoooo is set to indicate the error.  The possible
  49.      values for eeeerrrrrrrrnnnnoooo are the same as those used by _s_y_s_m_p(2).
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.